
	// If the length of the element's string is 0 then display helper message
			function notEmpty(elem, helperMsg){
				if((elem.value.length == 0)){
					alert(helperMsg);
					elem.focus(); // set the focus to this input
					console.log("$validationPass1 " + $validationPass);
					return false;
				}
				return true;
				console.log("pass");
			}
			
			function isAlphabet(elem, helperMsg){
			    console.log("$validationPass2 " + $validationPass);
				var alphaExp = /^[a-zA-Z]+$/;
				if(elem.value.match(alphaExp)){
				    
					return true;
				}else{
					alert(helperMsg);
					elem.focus();
					return false;
				}
			}
			
			function isDate(elem, helperMsg){
                console.log("$validationPass2 " + $validationPass);
                var dateExp = /^[0-9]{4}\-(0[1-9]|1[012])\-(0[1-9]|[12][0-9]|3[01])/;
                if(elem.value.match(dateExp)){
                    
                    return true;
                }else{
                    alert(helperMsg);
                    elem.focus();
                    return false;
                }
            }
	
	
                        